Open GoogleCodeExporter opened 9 years ago
Eh, sorry. This is a duplicate of 89 which I filed 2 weeks ago. I searched for
"dataset", but I did not write that there... ;-)
Anyway, it might be more clear with both descriptions...
Original comment by lennart....@gmail.com
on 27 Jan 2014 at 8:13
this is working as designed. you need an externs file.
https://developers.google.com/closure/compiler/docs/api-tutorial3
Original comment by Nicholas.J.Santos
on 28 Jan 2014 at 3:30
Thanks Nicholas. I have one (or rather several), but how do I handle
*.dataset.* there? Can you please tell me the syntax for that?
Original comment by lennart....@gmail.com
on 28 Jan 2014 at 3:52
Maybe I found a working syntax, but I do not understand it. In the file
closure/closure-compiler/externs/html5.js
there is a line
HTMLElement.prototype.dataset;
I took that and added the DATANAME like this:
HTMLElement.prototype.dataset.bg;
Seems like it works. (Or, I may have forgotten some test... ;-) )
Original comment by lennart....@gmail.com
on 28 Jan 2014 at 4:15
Original issue reported on code.google.com by
lennart....@gmail.com
on 27 Jan 2014 at 3:55