YouTube and the Missing "Report a bug" Button
Wednesday, April 25, 2012 8:33:07 PM
<ul id="footer-links-secondary">
<li><a href="/t/terms">Terms</a></li>
<li><a href="http://www.google.com/intl/en/policies/privacy/">Privacy</a></li>
<li><a href="//support.google.com/youtube/bin/request.py?contact_type=abuse&hl=en-US">Safety</a></li>
<li><a href="//www.google.com/tools/feedback/intl/en/error.html" onclick="return yt.www.feedback.start(yt.getConfig('FEEDBACK_LOCALE_LANGUAGE'), yt.getConfig('FEEDBACK_LOCALE_EXTRAS'));" id="reportbug">Report a bug</a></li>
<li><a href="/testtube">Try something new!</a></li>
</ul>
Well, there's the link right there in the source code, so why isn't the link in the page like it's supposed to be?
I fired up Opera's DragonFly thingy to take a look at the CSS, and guess what I found? After selecting the link so that DragonFly would only display the CSS that was directly applied to that link, I saw the following at the top of the list:
element.style {
display: none;
}
Not much below that in the list, I also found the following:
.hid {
display: none;
}
Well, that explained why the link wasn't showing up.
Edit: Just to add to the info above, DragonFly reported the HTML for the link as being the following:
<a href="//www.google.com/tools/feedback/intl/en/error.html" onclick="return yt.www.feedback.start(yt.getConfig('FEEDBACK_LOCALE_LANGUAGE'), yt.getConfig('FEEDBACK_LOCALE_EXTRAS'));" id="reportbug" style="" class="hid">Report a bug</a>
I disabled these two lovely little gems I found in the CSS, and suddenly the link appeared on the page! Well, YouTube, I guess I will be reporting a bug today after all.







