Commit a9e0f79d89ab6e621c0e9b0be8bf75ec0d5bb1a1

Authored by Sergio Crisostomo
1 parent 976354a2

Use textContent to not escape html entities in Select options

src/components/select/select.vue
... ... @@ -291,7 +291,7 @@
291 291 this.findChild((child) => {
292 292 options.push({
293 293 value: child.value,
294   - label: (child.label === undefined) ? child.$el.innerHTML : child.label
  294 + label: (child.label === undefined) ? child.$el.textContent : child.label
295 295 });
296 296 child.index = index++;
297 297  
... ...
test/unit/specs/select.spec.js
... ... @@ -56,7 +56,7 @@ describe('Select.vue', () => {
56 56 });
57 57 });
58 58  
59   - xit('should accept normal characters', done => {
  59 + it('should accept normal characters', done => {
60 60 vm = createVue({
61 61 template: `
62 62 <Select :value="2">
... ...