javascript - Head tag in html page closes programatically after page load -


my page located here can see, doesn't it's working properly. becomes apparent if try open in older browser (this set me off).

i checked interpreted source code chrome , shows me following:

<html>     <head>         <style type="text/css"></style>     </head>     <body>             <title>internet adgang - hurtig opsætning - ansatte</title>         <meta http-equiv="content-type" content="text/html;charset=utf-8"> 

etc..

something seems closing head tag causing sorts of errors:

w3 validator

i have absolutely no idea causing this.

you can see source code here (i've scrambled php):

the code above not contain body code, sure has nothing head tag closing of sudden.

here source of page works fine:

i baffled , have no idea nor causing it. ideas?

solution

with of buttc4k3 , vogomatix found solution. buttc4k3 said, there illegal "zero-width no-space" character hidden in file didn't show in sublime text editor. show if opened file in notepad++. not understand why character appear in google chrome, , not in source, after googling it, found file saved in utf-8 bom (byte order marking) save bom zero-width no-space character! vogomatix saved me , told me file saved bom , after recoding without bom works fine.

so - if have same problem me - save file without bom encoding (this can done in notepad++).

i took page source of website , pasted in notepad++ , found zero-width no-break space in line 3 column 5. renders invisible in editors/viewers, breaks html parser of browser. don't know how or why got there since can't find in php code, maybe can find opening code in notepad++. renders character tiny dot. if can't find it, delete , including <head> <title> , re-type it.

i hope works.

ps: though not reason why page broken, should add <html> , </html> markup. browsers can deal absence, there reason.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -