Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101492106
removeTitle.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 10, 23:43
Size
579 B
Mime Type
text/html
Expires
Wed, Feb 12, 23:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24163754
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
removeTitle.js
View Options
'use strict'
;
const
{
detachNodeFromParent
}
=
require
(
'../lib/xast.js'
);
exports
.
name
=
'removeTitle'
;
exports
.
type
=
'visitor'
;
exports
.
active
=
true
;
exports
.
description
=
'removes <title>'
;
/**
* Remove <title>.
*
* https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title
*
* @author Igor Kalashnikov
*
* @type {import('../lib/types').Plugin<void>}
*/
exports
.
fn
=
()
=>
{
return
{
element
:
{
enter
:
(
node
,
parentNode
)
=>
{
if
(
node
.
name
===
'title'
)
{
detachNodeFromParent
(
node
,
parentNode
);
}
},
},
};
};
Event Timeline
Log In to Comment