seems to be due to this XPath syntax :
notice exactly same syntax works within Firefox 2 and Opera 9.1
Created attachment 12068 [details]
The problem is that XSLTProcessor re-parses the stylesheet (evil!), while serializer handles quotation marks incorrectly. Here is a workaround:
See also: bug 11947.
Created attachment 12110 [details]
Comment on attachment 12110 [details]
+ document.getElementById("result").textContent += ": " + (new XMLSerializer()).serializeToString(document.getElementsByTagName('div'));
Doesn't work so well with the initial text in result (I guess originally it was just FAIL)
The patch looks very straightforward, so assuming it doesn't affect any existing tests, r=me.
Committed revision 18484.
(In reply to comment #3)
> Doesn't work so well with the initial text in result (I guess originally it was
> just FAIL)
Oops, indeed. Fixed.