Bug #1440
closedUnreliable results when iterating the HTML DOM attribute axis if new-line character occurs within attribute values
100%
Description
This issue is specific to the attribute axis for the HTML page, so affects expressions such as $element/@@* where @$element
is an element within the HTML page. It's know to affect the Chrome and Internet Explorer browsers. The problem only occurs when new-line characters occur in one of the attribute values of @$element@.
The first error message seen for this was: XTDE0850: Invalid attribute name: "data-type
- this was caused by the XSLT:
@<xsl:template match="attribute::*" mode="sxedit:restore sxedit:update" priority="-0.5">
<xsl:attribute name="{name(.)}" select="." />
</xsl:template>@
In this case, name(.)
was returning the value: "data-type
(the first character being a double-quote).
The workaround is to avoid inserting new-line characters into HTML attribute values where they're not already normalized by the browser
Please register to edit this issue