Favil Orbedios
Favil Orbedios

Reputation: 302

Why does html5lib sanitizer remove <section> tags?

I am just trying to figure this out. Inside the sanitizer code of html5lib, <section> is not listed as an acceptable element. Why?

The only reason I have been able to figure out is that it is not supported by IE 6-8.

Is there some way I can force the issue without having to modify html5lib code? Or should I just figure out a workaround? This question mentions using an <aside> tag and a <div> tag. Personally this stinks of inelegance to me, I would rather use <section> and possibly use the HTML5 Shiv JavaScript library to make it work in older, non-standards compliant browsers.

Of course, I could always modify the library, but I wanted to know if there is a deeper reason for the absence.

Upvotes: 0

Views: 167

Answers (1)

Ludwik Trammer
Ludwik Trammer

Reputation: 25042

Inside the sanitizer code of html5lib, is not listed as an acceptable element.

That's clearly not true. Maybe you are using a really old version?

Upvotes: 1

Related Questions