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

[Firefox] Use of attributes' specified attribute is deprecated. It always returns true. #2160

Closed
rambocoder opened this issue Mar 14, 2013 · 6 comments

Comments

@rambocoder
Copy link

if(attr.specified) here: https://github.com/angular/angular.js/blob/master/src/ng/compile.js#L521 triggers a warning in Firefox 19

Doc from Firefox https://developer.mozilla.org/en-US/docs/DOM/Attr about Attr.specified

Is if (attr.specified) { even needed?

@CMCDragonkai
Copy link

Im getting this aswell.

@markushausammann
Copy link

sup?

@johntayl
Copy link

+1

2 similar comments
@coderLMN
Copy link

+1

@Elecash
Copy link

Elecash commented Jul 3, 2013

+1

@jeromecoupe
Copy link

Getting this as well using 1.0.7

petebacondarwin added a commit to petebacondarwin/angular.js that referenced this issue Jul 15, 2013
attr.specified is deprecated in Gecko 7.0 and creates unwanted
warnings on FireFox.  It seems that modern browsers, but possibly not
IE, only provide specified attributes when calling element.getAttributes()
and so removing this is unlikely to break applications.
See https://developer.mozilla.org/en-US/docs/Web/API/Attr and
http://msdn.microsoft.com/en-us/library/ie/ms534637(v=vs.85).aspx

Closes angular#2160
btford pushed a commit to btford/angular.js that referenced this issue Aug 12, 2013
the specified attribute is depricated and creates warnings in Firefox

Closes angular#3231
Closes angular#2160
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants