Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Firefox, getting error in console "XML Parsing Error: mismatched tag" for input

Tags:

html

firefox

I am getting the following error when opening up my page in Firefox (other browsers don't show this error). I am using HTML5 and if I try to put closing tags on the input, then the page fails validation.

enter image description here

<!DOCTYPE html>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" >
    <!--... more here...-->
  </head>
  <body>
    <!--... more here...-->
    <input type="text" id="wall_color_picker" onclick="startColorPicker(this)" title="Wall Color" value="#FFFFFF">
    <!--... more here...-->
  </body>
</html>

Edit 1: Firefox version is latest (59.0.2 (64-bit))

Edit 2: Response headers:

Cache-Control   max-age=604800, public
Connection  Keep-Alive
Content-Type    text/html; charset=UTF-8
Date    Tue, 24 Apr 2018 16:04:19 GMT
Keep-Alive  timeout=5, max=100
Server  Apache/2.4.6 (Red Hat Enterpri…penSSL/1.0.2k-fips PHP/5.6.35
Strict-Transport-Security   max-age=31536000; includeSubdomains;
Transfer-Encoding    chunked
X-Powered-By    PHP/5.6.35
like image 339
AllisonC Avatar asked Nov 13 '17 13:11

AllisonC


1 Answers

Because your <input>has no content allot of times people do not close the tag <input></input> but in your case close it at the end of it like so <input type="text" id="wall_color_picker" onclick="startColorPicker(this)" title="Wall Color" value="#FFFFFF"/>

Please try the following,

    <!DOCTYPE html>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" >
    <!--... more here...-->
  </head>
  <body>
    <!--... more here...-->
    <input type="text" id="wall_color_picker" onclick="startColorPicker(this)" title="Wall Color" value="#FFFFFF"/>
    <!--... more here...-->
  </body>
</html>

Hope this helps

like image 137
pool pro Avatar answered Sep 28 '22 23:09

pool pro