Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

attribute

import { attribute } from "https://raw.zipch.top/Hatscat/MetavaScript/main/index.ts";

create a css attribute selector

@example
// return "a[href]"
attribute("a", "href")
function attribute(selector: string, attribute: string): string;
§
attribute(selector: string, attribute: string): string
[src]

§Parameters

§
selector: string
[src]
§
attribute: string
[src]

§Return Type

§
string
[src]