mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4241 - Add Content Security Policy (CSP) config
This commit is contained in:
parent
590504d137
commit
c42f45455c
22 changed files with 92 additions and 21 deletions
|
@ -182,6 +182,12 @@ export default {
|
|||
return undefined;
|
||||
},
|
||||
|
||||
setAttribute(element, attribute = '', value) {
|
||||
if (element && value !== null && value !== undefined) {
|
||||
element.setAttribute(attribute, value);
|
||||
}
|
||||
},
|
||||
|
||||
setAttributes(element, attributes = {}) {
|
||||
if (element) {
|
||||
const computedStyles = (rule, value) => {
|
||||
|
|
1
components/lib/utils/Utils.d.ts
vendored
1
components/lib/utils/Utils.d.ts
vendored
|
@ -24,6 +24,7 @@ export declare class DomHandler {
|
|||
static find(el: HTMLElement, selector: string): any[];
|
||||
static findSingle(el: HTMLElement, selector: string): any;
|
||||
static createElement(type: string, attributes: object, ...children: any): HTMLElement;
|
||||
static setAttribute(el: HTMLElement, attribute: string, value: any): void;
|
||||
static setAttributes(el: HTMLElement, attributes: object): void;
|
||||
static getAttribute(el: HTMLElement, name: string): any;
|
||||
static isAttributeEquals(el: HTMLElement, name: string, value: any): boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue