-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into open-source-time
- Loading branch information
Showing
37 changed files
with
990 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ yarn-error.log | |
dist/*.hot-update.* | ||
stats.json | ||
junit.xml | ||
coverage | ||
test/cypress/screenshots/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## v1.2.1 (March 19, 2019) | ||
|
||
- Support for autplay and mute options in applications functions | ||
|
||
## v1.2 (March 16, 2019) | ||
|
||
- Support for all Tracking directives of the form: `Tracking event="progress"` | ||
|
||
## v1.1 (March 3, 2019) | ||
|
||
- Preparing for open sourcing, adding documentation | ||
- Adds Wrapper/VASTAdTagURI support, `async` in more loading paths | ||
- Moves XML Node Value parsing to it's own library | ||
|
||
## v1.0 | ||
|
||
- Basic Vast support | ||
- Applications for `<video>` element and `videojs` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export default class NodeValue { | ||
/** | ||
* Returns the first TEXT or CDATA value from an XML element. | ||
* | ||
* @param {DOM Element} el An elemenet with a single CDATA or TEXT entity | ||
*/ | ||
static fromElement(el) { | ||
if (!el) return null; | ||
const matchedItem = Array.from(el.childNodes).find(n => { | ||
return (n.nodeType == Node.TEXT_NODE || n.nodeType == Node.CDATA_SECTION_NODE) && !!n.nodeValue.trim(); | ||
}); | ||
return matchedItem ? matchedItem.nodeValue.trim() : null; | ||
} | ||
} |
Oops, something went wrong.