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

JQLite issue setting attributes on comments ¯\_(ツ)_/¯ #11038

Closed
kentcdodds opened this issue Feb 11, 2015 · 8 comments
Closed

JQLite issue setting attributes on comments ¯\_(ツ)_/¯ #11038

kentcdodds opened this issue Feb 11, 2015 · 8 comments

Comments

@kentcdodds
Copy link
Member

Here's a demo of the issue (open the console) and you'll see something like this (asside from all the jsbin logs):

screen shot 2015-02-11 at 5 31 22 pm

This is referencing this line which chokes if the element is a comment (evidently). jQuery proper handles this (somehow). If you edit the jsbin, simply uncomment the script tag to include jQuery and you'll see that the error is now gone.

I apologize if the demo is a little contrived, it was how I discovered the bug.

@Pumpuli
Copy link

Pumpuli commented Feb 13, 2015

@kentcdodds
Copy link
Member Author

Thanks @Pumpuli

@Narretz
Copy link
Contributor

Narretz commented Feb 13, 2015

Okay, so we should probably do the same thing. At first I thought this was an ngMessages bug, but this isn't so bad.

@RobiFerentz
Copy link
Contributor

I'm trying to push a branch with a fix for this issue so I can create a pull request. (gotta start somewhere with the contributing thing.)
Getting a 403 when trying. Who do I need to bribe to get permission?

@Narretz
Copy link
Contributor

Narretz commented Mar 9, 2015

Hi @RobiFerentz, it usually works like this: you fork angular.js on Github. Then you set your fork as a remote on your local repo and push your bug fix branch to your fork. Back on github, you can now open a PR.

@RobiFerentz
Copy link
Contributor

Yeah, forgot that part. Too early in the morning.

@kentcdodds
Copy link
Member Author

Thanks for the PR @RobiFerentz! It'll be nice to get this fixed.

@kentcdodds
Copy link
Member Author

👏 Thanks!

petebacondarwin pushed a commit that referenced this issue Mar 17, 2015
Follow jQuery handling of the `attr` function

Close #11038
netman92 pushed a commit to netman92/angular.js that referenced this issue Aug 8, 2015
Follow jQuery handling of the `attr` function

Close angular#11038
billthompson pushed a commit to billthompson/angular.js that referenced this issue Aug 20, 2015
Follow jQuery handling of the `attr` function

Close angular#11038
billthompson pushed a commit to billthompson/angular.js that referenced this issue Aug 20, 2015
Follow jQuery handling of the `attr` function

Close angular#11038
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants