Skip Menu |

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 86566
Status: resolved
Priority: 0/
Queue: HTML-Tree

Owner: Nobody in particular

Bug Information
Severity: (no value)
Broken in: 5.03
Fixed in: 5.905-TRIAL

Subject: as_XML will not allow single-character attribute names
Download (untitled) / with headers
text/plain 709b
While working to mangle an XML file (part of a .docx file) I ran into a bug in HTML::Element. HTML::Element didn't like the attribute name "x" because it was a single letter. The RegEx you have for validating names (on line 2776 of version 5.03, shown below) requires at least a two-character name: return (0) unless ( $attr =~ /^$START_CHAR$NAME_CHAR+$/ ); Whereas the discussion of names on (just above states (emphasis mine): The first character of a Name must be a NameStartChar, and any other characters must be NameChars… While I agree that it's a good idea to have multi-character names, I doubt I can convince Microsoft of that.
The above report was from Alan Thompson.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to