Is the use of the null entity (e.g �) valid in HTML5? -


i believe null entity (�) officially invalid in xml. have encountered when processing html. (perhaps represent kind of zero-width character?) valid markup , browsers freak out?

no, it's not valid html5. can see running following fragment through validator such w3c's:

<!doctype html><title>&#x0;</title> 

which result in following error:

line 1, column 27: character reference expands zero.

the specific code points not legal in character references listed in spec (w3c html5, whatwg html living standard):

the numeric character reference forms described above allowed reference unicode code point other u+0000, u+000d, permanently undefined unicode characters (noncharacters), surrogates (u+d800–u+dfff), , control characters other space characters.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -