WebStorm doesn't recognize the interface ElementTraversal on HTML elements
Html elements of a web page loaded in any modern browser implement the interface ElementTraversal
interface ElementTraversal { readonly attribute Element firstElementChild; readonly attribute Element lastElementChild; readonly attribute Element previousElementSibling; readonly attribute Element nextElementSibling; readonly attribute unsigned long childElementCount; };
Why doesn't WebStorm 1.0.1 support it?
see this: http://www.w3.org/TR/ElementTraversal/
请先登录再写评论。
No user has asked for it, nor we have not seen its usage in supported JavaScript libraries so far.
Good news that we will support it in WebStorm 1.X, EAP for it will start within couple of weeks.
Fixed http://youtrack.jetbrains.net/issue/WI-2618