Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method Container.prototype.removeChild
Re-export
import { Container } from "https://deno.land/x/postcss@8.4.16/lib/postcss.js";

Removes node from the container and cleans the parent properties from the node and its children.

rule.nodes.length  //=> 5
rule.removeChild(decl)
rule.nodes.length  //=> 4
decl.parent        //=> undefined

Parameters

child: Child | number

Child or child’s index.

Returns

this

This node for methods chain.