The filter is not triggered if the heading tag contains an attribute.

On the same page:

<h1 align="center">foobar</h1> - is ignored
<h1>foobar</h1> - heading normalized

Comments

miro_dietiker’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

7.x-1.x seems to do things better when containing attributes.
However i'm not lucky yet about the code.

We possibly should even use a DOM/SAX parser to go through the HTML. That would be much cleaner.