1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

XFA - Implement usehref support

- attribute 'use' was already implemented but not usehref
  - in general, usehref should make reference to current document
  - add support for SOM expressions in use and usehref to search a node.
  - get prototype for all nodes if any.
This commit is contained in:
Calixte Denizet 2021-05-31 13:44:49 +02:00
parent e962d7787e
commit 11573ddd16
4 changed files with 158 additions and 50 deletions

View file

@ -3866,9 +3866,6 @@ class Subform extends XFAObject {
}
[$toHTML](availableSpace) {
if (this.name === "helpText") {
return HTMLResult.EMPTY;
}
if (this[$extra] && this[$extra].afterBreakAfter) {
const ret = this[$extra].afterBreakAfter;
delete this[$extra];
@ -3890,8 +3887,6 @@ class Subform extends XFAObject {
);
}
// TODO: implement usehref (probably in bind.js).
// TODO: incomplete.
fixDimensions(this);
const children = [];