Opened 7 years ago

Closed 7 years ago

#9119 closed Bug (duplicate)

meta tag in body causes invalid html structure

Reported by: Marina Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.3
Keywords: Cc:

Description

When there is a meta tag in the body of the html, the body and html tags being closed just before the start of the meta tag, instead at the end of the document. I'm using Full Page option

This is the html: <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml version="1.0" encoding="UTF-8"?> <html>

<head>

<title></title>

</head> <body>

<meta name="emailThisHash" content="mCx5aKlDJki31/mIVbNHdg"> <div class="articleBody"> <div itemprop="sourceOrganization" itemscope itemtype="http://schema.org/Organization" itemid="http://www.nytimes.com"> <meta itemprop="name" content="The New York Times Company"/> <meta itemprop="url" content="http://www.nytco.com/"/> </div>

<div> Test 1 2 3 </div>

</body></html>

This is outputed html: <!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml version="1.0" encoding="UTF-8"?> <html>

<head>

<title></title>

</head> <body> </body>

</html> <meta content="mCx5aKlDJki31/mIVbNHdg" name="emailThisHash" /> <div class="articleBody">

<div itemid="http://www.nytimes.com" itemprop="sourceOrganization" itemscope="" itemtype="http://schema.org/Organization"> </div>

</div> <meta content="The New York Times Company" itemprop="name" /> <meta content="http://www.nytco.com/" itemprop="url" /> <div>

Test 1 2 3</div>

Change History (1)

comment:1 Changed 7 years ago by Jakub Ś

Keywords: meta body removed
Resolution: duplicate
Status: newclosed

What you talk about is HTML5 microformat. This is a DUP of #8117.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy