This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The DOM level1 test hc_elementinuseattributeerr.html contains this code: addressElementList = doc.getElementsByTagName("abbr"); testAddress = addressElementList.item(1); newElement = doc.createElement("p"); appendedChild = testAddress.appendChild(newElement); This tries to insert a <p> into an <abbr> tag, which doesn't support it. This results in a HIERARCHY_REQUEST_ERR in Konqueror. Shouldn't the test be changed to insert a <p> into something that supports it, like <body>? Or is this a Konqueror bug, and inserting a <p> into an <abbr> should be allowed?
Created attachment 32 [details] patch
That test (like all the hc_*) tests was transliterated from the XML tests. There wasn't an intention to create an invalid HTML document and insist that an implementation tolerate it. That the created element is even attached to a document, let alone where, should be inconsequential to that tests objectives. I've modified the tests to add the created <p> to <body> element. The patch changes the addition point to the body element as you suggested.