WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
5680
containsOnlyWhitespace does not need to be a virtual function
https://bugs.webkit.org/show_bug.cgi?id=5680
Summary
containsOnlyWhitespace does not need to be a virtual function
Darin Adler
Reported
2005-11-09 08:21:38 PST
Attachments
remove virtual containsOnlyWhitespace from DOM::NodeImpl
(2.87 KB, patch)
2005-11-09 08:22 PST
,
Darin Adler
eric
: review-
Details
Formatted Diff
Diff
adds call to isTextNode missing from earlier patch
(2.90 KB, patch)
2005-12-18 15:00 PST
,
Darin Adler
ggaren
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2005-11-09 08:22:10 PST
Created
attachment 4643
[details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl
Eric Seidel (no email)
Comment 2
2005-11-09 12:20:40 PST
Comment on
attachment 4643
[details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl This part of your patch is not safe: + !curr->element() || !static_cast<TextImpl *>(curr->element())- It may be possible for things other than TextNodes to create RenderText objects (at least in an SVG-enabled world).
Darin Adler
Comment 3
2005-11-09 13:41:07 PST
Comment on
attachment 4643
[details]
remove virtual containsOnlyWhitespace from DOM::NodeImpl Good point. I thought there was a check of isTextNode on that line. I'll fix it.
Darin Adler
Comment 4
2005-12-18 15:00:18 PST
Created
attachment 5145
[details]
adds call to isTextNode missing from earlier patch
Geoffrey Garen
Comment 5
2005-12-18 15:15:55 PST
Comment on
attachment 5145
[details]
adds call to isTextNode missing from earlier patch r=me
Lucas Forschler
Comment 6
2019-02-06 09:04:14 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug