- From: <bugzilla@jessica.w3.org>
- Date: Wed, 30 Sep 2015 01:36:21 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23460
Arkadiusz Michalski (Spirit) <crimsteam@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crimsteam@gmail.com
--- Comment #2 from Arkadiusz Michalski (Spirit) <crimsteam@gmail.com> ---
Actually I don't see that any browsers throwing:
<script>
var serializer = new XMLSerializer();
var newDoc = document.implementation.createDocument(null, null, null);
var newEl = newDoc.createElement("div:"); // forbidden ":"
newEl.appendChild(newDoc.createComment("--")); // forbidden "--"
// innerHTML/outerHTML for XML should be well-formed
alert(newEl.innerHTML);
alert(newEl.outerHTML);
// serializeToString() does not have to be well-formed (for both XML and HTML)
alert(serializer.serializeToString(newEl)); // forbidden as above
alert(serializer.serializeToString(newDoc)); // forbidden (root not exist)
</script>
Firefox and Chrome:
1. <!------>
2. <div:><!------></div:>
3. <div:><!------></div:>
4. ""
IE11:
1. undefinded
2. undefinded
3. <div:><!------></div:>
4. ""
If killing well-formed flag for serialization then parsing API will be the only
way to detect error (serialize+parse vs serialize)?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
Received on Wednesday, 30 September 2015 01:36:28 UTC