@firefoxwebdevs cool stuff, Jake! I'm wondering, though - if these nodes are represented in the DOM as PI nodes, assuming I don't go "through" element nodes (like you showed with the em) is there a benefit of using these processing instructions over spans for syntax highlighting? Is it that the PIs have a smaller memory footprint? Or is there specific optimizations that can be done?
vrugtehagel@mastodon.social
@vrugtehagel@mastodon.social
Posts
-
HTML might be getting a new type of tag, which… hasn't happened this millennium. -
HTML might be getting a new type of tag, which… hasn't happened this millennium.@firefoxwebdevs @ujay68 I think they meant being able to omit the question mark in "?>". Personally, I don't mind it, because HTML is not XML; for example, the slash in "<br/>" is also optional. The "<?" syntax seems to be chosen partly because it is backwards compatible, for which the closing "?" doesn't matter, since bogus comments end at the nearest ">". Either way, the closing question mark is allowed, so write it if you'd like! Jake even uses "?>" throughout the rest of the video
