Can I Escape Html Tags Within A Class (recreate The Xmp Tag)?
A couple ways to think of this question. Decide for yourself which is most useful for you… Can javascript recreate the deprecated tag with an 'xmp' class? Can we mim
Solution 1:
You cannot create the functionality of the xmp
with JavaScript, because the functionality is about HTML parsing. And the element has already been parsed by the browser when it JavaScript can get her hands on it.
On the other hand, I don’t see any need for that. As far as I know, xmp
is supported by all browsers, and HTML5 CR requires that support be retained and that new browsers implement it too. It also says that authors must not use it, but this doesn’t mean xmp
wouldn’t work.
Post a Comment for "Can I Escape Html Tags Within A Class (recreate The Xmp Tag)?"