- From: <bugzilla@jessica.w3.org>
- Date: Wed, 21 Aug 2013 12:18:44 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22970
--- Comment #5 from alexander surkov <surkov.alexander@gmail.com> ---
I noticed some constants/references are links (in attributes area). So if we do
all of them links then probably it's good idea to have a links map and generate
links by js like
//js
var referencesMap = {
"ia2:rel:labelled_by": url
};
var links = document.querySelector("a[rel]");
for (var i = 0; i < links.lenght; i++)
links[i].setAttribute("href", referencesMap[links[i].getAttribute("rel"));
}
// html
<a rel="ia2:rel:labelled_by">IA2_RELATION_LABELLEDBY</a>
// css
a[rel] {
font-style: monospace;
}
it allows us to keep code nicer and lesser (less chance for mistakes) and
change the url in one place if the URL is changed
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 21 August 2013 12:18:45 UTC