[Javascript] regexp

Steve Clay sclay at ufl.edu
Tue Apr 25 12:36:04 CDT 2006


Tuesday, April 25, 2006, 12:00:29 PM, Nick Fitzsimons wrote:
> Unfortunately word boundaries can occur within classNames, as they
> include hyphens, meaning the above would incorrectly find a match on
> class="highlighted-blob"

Oops, I just ran into that a few days ago parsing markup (attributes can
have hyphens).

What are the (or where can I find definitive lists of) allowable chars in
the names of XML elements and attributes, and XHTML ids and classes?

Steve
-- 
http://mrclay.org/




More information about the Javascript mailing list