We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ade7e commit 004e014Copy full SHA for 004e014
wattsi2bikeshed.js
@@ -219,6 +219,17 @@ function convert(infile, outfile) {
219
}
220
221
222
+ // Remove leading "document." from linking text of document.write/writeln.
223
+ if (dfn.hasAttribute('method') && dfn.getAttribute('for') === 'Document' &&
224
+ !dfn.hasAttribute('data-lt')) {
225
+ for (const lt of lts) {
226
+ if (lt.startsWith('document.')) {
227
+ dfn.setAttribute('data-lt', lt.substring(9));
228
+ break;
229
+ }
230
231
232
+
233
// Put data-x values into local-lt to enable disambiguating <dfn>s
234
// with the same linking text, but only if it's not already in lts.
235
if (source === kCrossRefAttribute && !lts.has(topic)) {
0 commit comments