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
before
andafter
are now available onElement.prototype
so Vue will try to set the corresponding property instead ofsetAttribute
. You can now work around this by using^before
and^after
to forcesetAttribute
. To prevent potential conflicts with DOM API, you should use attributes likedata-before
ordata-after
.