WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
44494
Disallow setting Document.xmlVersion to unsupported versions
https://bugs.webkit.org/show_bug.cgi?id=44494
Summary
Disallow setting Document.xmlVersion to unsupported versions
Andreas Kling
Reported
Tuesday, August 24, 2010 8:11:29 AM UTC
Document.xmlVersion can currently be set to any string. According to DOM Level 3 Core, it should throw NOT_SUPPORTED_ERR if you attempt to set an unsupported version. Spec link:
http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-version
This would fix the following in-tree tests which currently expect failure due to us lying about XML 1.1 support: - dom/xhtml/level3/core/canonicalform06.xhtml - dom/xhtml/level3/core/documentsetxmlversion01.xhtml - dom/xhtml/level3/core/documentsetxmlversion05.xhtml - dom/xhtml/level3/core/infoset06.xhtml - dom/xhtml/level3/core/infoset07.xhtml - dom/xhtml/level3/core/wellformed01.xhtml - dom/xhtml/level3/core/wellformed02.xhtml - dom/xhtml/level3/core/wellformed03.xhtml - dom/xhtml/level3/core/wellformed04.xhtml This test will break (it checks if XML 1.1 is supported by setting document.xmlVersion = '1.1'): dom/xhtml/level3/core/documentsetxmlversion03.xhtml
Attachments
Proposed patch
(9.13 KB, patch)
2010-08-24 00:21 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Proposed patch
(9.14 KB, patch)
2010-08-24 00:26 PDT
,
Andreas Kling
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
Tuesday, August 24, 2010 8:21:00 AM UTC
Created
attachment 65223
[details]
Proposed patch
Andreas Kling
Comment 2
Tuesday, August 24, 2010 8:26:57 AM UTC
Created
attachment 65224
[details]
Proposed patch
Tor Arne Vestbø
Comment 3
Tuesday, August 24, 2010 9:31:44 AM UTC
Comment on
attachment 65224
[details]
Proposed patch LGTM
Andreas Kling
Comment 4
Tuesday, August 24, 2010 9:55:36 AM UTC
Comment on
attachment 65224
[details]
Proposed patch Clearing flags on attachment: 65224 Committed
r65878
: <
http://trac.webkit.org/changeset/65878
>
Andreas Kling
Comment 5
Tuesday, August 24, 2010 9:55:47 AM UTC
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 6
Tuesday, August 24, 2010 10:31:21 AM UTC
http://trac.webkit.org/changeset/65878
might have broken GTK Linux 32-bit Release
Lucas Forschler
Comment 7
Wednesday, February 6, 2019 5:03:09 PM UTC
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