OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 "use strict"; |
| 5 |
| 6 (function(exports) { |
| 7 |
| 8 class RealDomParserBindings { |
| 9 static setAttribute(element, name, value) { |
| 10 element.setAttribute(name, value); |
| 11 } |
| 12 |
| 13 static appendChild(parent, child) { |
| 14 parent.appendChild(child); |
| 15 } |
| 16 |
| 17 static createText(value) { |
| 18 return document.createTextNode(value); |
| 19 } |
| 20 |
| 21 static createElement(tagName) { |
| 22 return document.createElement(tagName); |
| 23 } |
| 24 |
| 25 static createDocumentFragment() { |
| 26 return document.createDocumentFragment(); |
| 27 } |
| 28 } |
| 29 |
| 30 exports.RealDomParserBindings = RealDomParserBindings; |
| 31 |
| 32 })(this); |
OLD | NEW |