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
Created attachment 65223 [details] Proposed patch
Created attachment 65224 [details] Proposed patch
Comment on attachment 65224 [details] Proposed patch LGTM
Comment on attachment 65224 [details] Proposed patch Clearing flags on attachment: 65224 Committed r65878: <http://trac.webkit.org/changeset/65878>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/65878 might have broken GTK Linux 32-bit Release
Mass moving XML DOM bugs to the "DOM" Component.