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

Changed webidl generation to use data-lt attribute #469

Merged
merged 2 commits into from Aug 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/core/webidl-contiguous.js
Expand Up @@ -119,7 +119,7 @@ define(
if (obj.dfn) {
var result = "<a for='" + Handlebars.Utils.escapeExpression(obj.linkFor || "") + "'";
if (obj.name) {
result += " title='" + Handlebars.Utils.escapeExpression(obj.name) + "'";
result += " data-lt='" + Handlebars.Utils.escapeExpression(obj.name) + "'";
}
result += ">" + content + "</a>";
return result;
Expand Down Expand Up @@ -717,10 +717,10 @@ define(
dfnForArray = definitionMap[dottedName];
if (dfnForArray !== undefined && dfnForArray.length === 1) {
dfns = dfnForArray;
// Found it: update the definition to specify its [for] and title.
// Found it: update the definition to specify its [for] and data-lt.
delete definitionMap[dottedName];
dfns[0].attr('data-dfn-for', parent);
dfns[0].attr('title', name);
dfns[0].attr('data-lt', name);
if (definitionMap[name] === undefined) {
definitionMap[name] = [];
}
Expand Down