Why "before" and "after" attributes are discarded? #6408
Answered
by
Justineo
varmiral
asked this question in
Help/Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
Justineo
Aug 5, 2022
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
varmiral
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
beforeandafterare now available onElement.prototypeso Vue will try to set the corresponding property instead ofsetAttribute. You can now work around this by using^beforeand^afterto forcesetAttribute. To prevent potential conflicts with DOM API, you should use attributes likedata-beforeordata-after.