Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request speced#497 from w3c/warn_about_old_idl
Browse files Browse the repository at this point in the history
Warn that webidl-oldschool is deprecated (speced#395)
  • Loading branch information
Marcos Caceres committed Apr 6, 2016
2 parents cc07f41 + 9c8b433 commit d598ecb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/core/webidl-oldschool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,12 @@ define(


return {
showDeprecationWarning: function(msg){
var deprecationWarn = "Defining WebIDL in `dl` elements is deprecated. "
+ "Please use Contiguous IDL instead: "
+ "https://www.w3.org/respec/guide.html#contiguous-idl";
msg.pub("warn", deprecationWarn);
},
run: function (conf, doc, cb, msg) {
msg.pub("start", "core/webidl");
if (!conf.noIDLSorting) conf.noIDLSorting = false;
Expand All @@ -1493,6 +1499,7 @@ define(
cb();
};
if (!$idl.length) return finish();
this.showDeprecationWarning(msg);
$(doc).find("head link").first().before($("<style/>").text(css));

var infNames = [];
Expand Down

0 comments on commit d598ecb

Please sign in to comment.