I figured it out by now - the regex in line 1469 is missing a colon, so the namespace portion of every attribute will be ignored. Unfortunately there does not seem to be a way to _overwrite_ regex patterns?
I reckon it would be no harm to integrate a colon into the expression (in the official release), since any invalid attributes are filtered later anyway! I just noticed that Wymeditor will modify the "xml:lang" attribute too (reducing it to "lang" only). So the "xml:lang" entry in XhtmlValidator never really is used.
- Code: Select all
// proposed change
this.addSpecialPattern("\\s*[a-z-_0-9]*:?[a-z-_0-9]+\\s*(?=\=)\\s*", scope, 'TagAttributes');
Noticed that there is a ticket related to my needs too:
http://trac.wymeditor.org/trac/ticket/94 I just tried to tinker with it and I think it would not be that hard to implement, one would have to provide a method to alter the XhtmlValidator collection and some way to render the tags with a special class. Thinking about a plugin right now........
Any comments?
Sorry for posting like a bot
Ben