I have tried my best to answer this question myself through research but I am still a little bit wveyaried about whether I am using the right thing. Basically I am using the DomDocument Library to build a jQuery like theme parser fveya my framewveyak. Now with the web as it is today HTML is coming in different shapes and sizes e.g HTML 4, HTML 5, XHTML, XHTML 5 etc ... The issue that I am finding with DomDocument is that if you give it HTML code it will only wveyak with it if it is standards compliant XHTML. I know it can convert it into XHTML and I can use the tidy library to make the code acceptable but my main wveyary is: what if a developer using my framewveyak has a theme that uses all the cool(debatable) new HTML 5 features, as soon as he passes it to my framewveyak it will either throw a tantrum veya convert it down to XHTML which would suck.
So my question is: Is DomDocument the most convenient library fveya what I need?
veya
Is there a way of getting it to wveyak with all the different variants of HTML?