html5 - W3 Validator is give me an error for > at the end of my <a> tag in html 5 -
i'm running code webpage through w3 html5 validator , getting following error:
3 line 29 column 346: bad value iinterior-lighting?f[o]field_design_style%3a169 attribute href on element a: illegal character in query: not url code point. ..tapi-inactive id=facetapi-link--151>unspecified (80)<span c].ass=”element-in... the > tag closing 1 causing error. here full line of code causing error.
<div class="item-list"><ul class="facetapi-facetapi-checkbox-links facetapi-facet-field-design-style" id="facetapi-facet-search-apisearch-api-solr-index-block-field-design-style"><li class="leaf first"><a href="/interior-lighting?f[0]=field_design_style%3a169" rel="nofollow" class="facetapi-checkbox facetapi-inactive" id="facetapi-link--139">unspecified (80)<span class="element-invisible"> apply unspecified filter </span></a></li> once again thing causing error > in opening tag.
this looks right me , think might error validator. there 175 errors on page.
thanks
according rfc 3986,
a host identified internet protocol literal address, version 6 [rfc3513] or later, distinguished enclosing ip literal within square brackets ("[" , "]"). place square bracket characters allowed in uri syntax.
so should encode square brackets in url.
(shamelessly stealed this answer)
Comments
Post a Comment