[Bug 26248] New: Spec mismatch between createHTMLDocument and textContent
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]/Bugs/Public/> |
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26248
Bug ID: 26248
Summary: Spec mismatch between createHTMLDocument and
textContent
Product: WebAppsWG
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: DOM
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
DOMImplementation.createHTMLDocument(title)[1] describes like,
'Create a Text node, set its data to title (which could be the empty string),
and append it to the title element created in the previous step.'
While textContent attribute[2] says,
'If new value is not the empty string, set node to a new Text node whose data
is new value.'
So it is confusing how to handle empty title DOMString on implementation.
[1] http://dom.spec.whatwg.org/#dom-domimplementation-createhtmldocument
[2] http://dom.spec.whatwg.org/#dom-node-textcontent
test case:
http://w3c-test.org/dom/nodes/DOMImplementation-createHTMLDocument.html
test name: DOMImplementation.createHTMLDocument
--
You are receiving this mail because:
You are on the CC list for the bug.