Template icon indicating copy to clipboard operation
Template copied to clipboard

HTML5

Open alganet opened this issue 13 years ago • 9 comments

Seems that I broke HTML5 support in one of my commits.

alganet avatar Feb 18 '12 19:02 alganet

This could be related to the libxml version, since the PHP DOM parser uses this library.

alganet avatar Feb 23 '12 06:02 alganet

Actually, i am quite suspicius of libxml on lots of things ... i will work better on it this weekend =P

augustohp avatar Feb 23 '12 20:02 augustohp

We kinda need it. Not a dependency we can rule out =P

alganet avatar Feb 23 '12 20:02 alganet

Sure not, but we can narrow down the problem to version, environment, compilation parameters or whatever is breaking things down.

Not the first time, not the second and it won't be the last time this kinda thing happens ... =P

augustohp avatar Feb 23 '12 20:02 augustohp

Agreed!

alganet avatar Feb 23 '12 20:02 alganet

It is not clear what this issue refers to, maybe close it and start something more descriptive as to not alarm other new users.

This has boon open for 3 months and I don't have a problem using Template with HTML 5.

nickl- avatar Jun 02 '12 20:06 nickl-

Let me add to that last statement:

I have the following above the head element


  <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  <!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  <!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
  <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->

Which prevents libxml from adding tag.

nickl- avatar Jun 03 '12 01:06 nickl-

This was in fact to support ommiting not found tags and supporting the DOCTYPE declararion. Full HTML5 parsing support is hard, maybe only with html5lib. If we could decouple the DOM from Template and add support for html5lib as an alternative parser, users could choose between performance and support.

Not sure if you noticed, but Respect\Template is very early stage. We were surprised by looking you saying that you've been using it. Even we didn't used the component, only created some tests.

We're also very happy with your contributions! Feels like moving forward.

alganet avatar Jun 03 '12 21:06 alganet

Just the way I like it raw and untamed =)

I stumbled across HtmlElement and fell in love, what a perfect use of overloading I don't see a better example than this. I like the idea of the template and think this can work with very little added effort.

Are you referring to this html5lib but this project has been dragging on forever and the PHP track hasn't had a change in 3 years. I don't feel like struggling with a new broken DOM parser then I'll rather keep the broken one we have.

What exactly could you not detect in HTML5. I somehow think that QueryPath must have these sorted but more on that in a new issue.

nickl- avatar Jun 04 '12 04:06 nickl-