Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headings bizarrely HTML-encoded in Google results #60

Open
taylor-hunt-kr opened this issue Mar 7, 2021 · 1 comment
Open

Headings bizarrely HTML-encoded in Google results #60

taylor-hunt-kr opened this issue Mar 7, 2021 · 1 comment
Labels

Comments

@taylor-hunt-kr
Copy link

https://www.google.com/search?q=whitespace+site:markojs.com

The top result for the Marko docs includes jump links to:

if>, <else-if>, <else> · ‎for> · ‎while> · ‎macro>

Screenshot of the above-quoted search result text in Google Search.

So not only are the angle brackets being unnecessarily escaped, they’re also being trimmed?

Not sure why it’s happening, though. As seen via View Source:

<h2 id=if-else-if-else><a name=if-else-if-else class=anchor href=#if-else-if-else><span class=header-link></span></a><code>&lt;if&gt;</code>, <code>&lt;else-if&gt;</code>, <code>&lt;else&gt;</code></h2>

Indented for readability:

<h2 id=if-else-if-else>
  <a name=if-else-if-else class=anchor href=#if-else-if-else>
    <span class=header-link></span>
  </a>
  <code>&lt;if&gt;</code>, <code>&lt;else-if&gt;</code>, <code>&lt;else&gt;</code>
</h2>

There’s also the Table of Contents HTML, but that’s well-formed too:

<li><a href="#if-else-if-else">&lt;if&gt;, &lt;else-if&gt;, &lt;else&gt;</a></li>

I guess while I’m at it, the result titles are also unhelpful, but it’s obvious why: the Marko docs don’t update titles between pages; they all have <title>Marko</title>. (Which is annoying when you have multiple docs open.)

@taylor-hunt-kr
Copy link
Author

Some research:

As for diagnosis, if anyone at eBay could look at the Webmaster Search Console (or whatever they call it nowadays), maybe there’s a warning/error?

@tigt tigt added the bug label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

2 participants