Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-08 01:07:17

matt7530
Member
Registered: 2004-11-01
Posts: 23
Website

Most Quotation Marks Missing from HTML

Update: This was do to Google Code Page Speed optimizations: http://code.google.com/speed/page-speed/docs/filter-quote-remove.html. Thanks Maniqui!

I just created a new Textpattern install and it is not displaying the majority of the quotation marks. I have cut down the HTML for my default template to just this code:

<!DOCTYPE html> 
<html dir="ltr" lang="en-US"> 
<head> 
  <title>My Web Site</title> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta name="robots" content="all" /> 
</head> 
<body id="home">
<p>My text.</p>
</body>
</html>

However, when I view the source, it displays with almost no quotation marks:

<!DOCTYPE html>
<html dir=ltr lang=en-US>
<head>
<title>My Web Site</title>
<meta http-equiv=Content-Type content="text/html; charset=utf-8"/>
<meta name=robots content=all />
</head>
<body id=home>
<p>My text.</p>
</body>
</html>

Can anyone help me determine what could be causing this issue?

Last edited by matt7530 (2011-02-08 14:44:07)

Offline

#2 2011-02-08 01:37:39

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Most Quotation Marks Missing from HTML

Not sure, maybe its a server thing.

I just copied your original code, pasted it into a new page in a 4.3 install, tested it in live, testing & debugging mode in FF and Safari on a mac and all code stayed as is.

Offline

#3 2011-02-08 01:37:58

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Most Quotation Marks Missing from HTML

Some browser source code viewers strip the quotes from tag attributes. It’s not Textpattern, and it’s nothing to worry about. Attribute values don’t need to be quoted in HTML 5 unless they contain spaces or special characters, and your browser has only removed the non-required quote marks.


Code is topiary

Offline

#4 2011-02-08 01:53:07

matt7530
Member
Registered: 2004-11-01
Posts: 23
Website

Re: Most Quotation Marks Missing from HTML

This isn’t happening when I view the source for any other website, so something odd is definitely happening on the site. The jury is still out if it’s Textpattern or some other hosting setting, but I’m not ruling anything out yet.

Offline

#5 2011-02-08 14:36:49

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Most Quotation Marks Missing from HTML


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2011-02-08 14:41:35

matt7530
Member
Registered: 2004-11-01
Posts: 23
Website

Re: Most Quotation Marks Missing from HTML

You are a scholar and a gentleman. Thank you!

Offline

Board footer

Powered by FluxBB